home *** CD-ROM | disk | FTP | other *** search
/ Amiga Magazin: Amiga-CD 1996 March / Amiga-CD 1996 #3.iso / pd-software / mui_3.1 / developer / extclasses / mcc_userdata / dmakefile next >
Makefile  |  1996-01-19  |  2KB  |  78 lines

  1. #
  2. #    Dice Makefile for MUI custom class demonstration programs;
  3. #    uses EasyLibs.
  4. #
  5.  
  6.  
  7.  
  8. ##########################################################################
  9. #    Definitions used in MuiClassHeader.c
  10. ##########################################################################
  11. LIBNAME=UserData.mcc
  12. LIBVERSION=9
  13. LIBREVISION=11
  14. LIBINITFUNC=__UserLibInit
  15. LIBTERMFUNC=__UserLibCleanup
  16. #LIBOPENFUNC=-DLIBOPENFUNC=MyOpenFunc
  17. LIBOPENFUNC=
  18. #LIBCLOSEFUNC=-DLIBCLOSEFUNC=MyCloseFunc
  19. LIBCLOSEFUNC=
  20. #LIBBASESIZE="-DLIBBASESIZE=sizeof(struct Library)"
  21. LIBBASESIZE=
  22.  
  23.  
  24.  
  25.  
  26.  
  27. ##########################################################################
  28. #    Use this to compile with Dice
  29. ##########################################################################
  30. CC=dcc
  31. CFLAGS= -DLIBNAME=$(LIBNAME) -DLIBVERSION=$(LIBVERSION) \
  32.     -DLIBREVISION=$(LIBREVISION) -DLIBINITFUNC=$(LIBINITFUNC) \
  33.     -DLIBTERMFUNC=$(LIBTERMFUNC) $(LIBOPENFUNC) $(LIBCLOSEFUNC) \
  34.     $(LIBBASESIZE) -proto \
  35.     -IMUI:Developer/C/Include
  36.  
  37. LN=dcc
  38. LFLAGS= -l0 -lc -lamiga30 -lmui:Developer/C/DLib/mui
  39. TO=-o
  40. NOLINK=-c
  41. LINK=
  42.  
  43.  
  44.  
  45.  
  46.  
  47. ###########################################################################
  48. #    You should not need to change anything below
  49. ###########################################################################
  50.  
  51. #    Main targets: all clean
  52.  
  53. all: mui/UserData.mcc ShowUserData
  54.  
  55. clean:
  56.     delete quiet #?.o mui/UserData.mcc ShowUserData
  57.  
  58.  
  59. #
  60. # Stuff for creating the library
  61. #
  62. mui/UserData.mcc: MuiClassHeader.o UserData.o
  63.     $(LN) $(TO) mui/UserData.mcc $(LFLAGS) MuiClassHeader.o UserData.o
  64.  
  65. MuiClassHeader.o: MuiClassHeader.c
  66.     $(CC) $(CFLAGS) $(NOLINK) MuiClassHeader.c
  67.  
  68. UserData.o: UserData.c
  69.     $(CC) $(CFLAGS) $(NOLINK) UserData.c
  70.  
  71.  
  72. #
  73. # Stuff for creating the executable
  74. #
  75. ShowUserData: ShowUserData.c
  76.     $(CC) $(LINK) $(CFLAGS) $(TO) ShowUserData ShowUserData.c \
  77.           -IMUI:Developer/C/Examples -lMUI:Developer/C/DLib/mui
  78.